package com.zzyk.main.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyk.main.model.pojo.MedicalReportMonth;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;

@Mapper
public interface MedicalReportMonthMapper extends BaseMapper<MedicalReportMonth> {
    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(MedicalReportMonth record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(MedicalReportMonth record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    MedicalReportMonth selectByPrimaryKey(Integer id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(MedicalReportMonth record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(MedicalReportMonth record);

    /**
     * 查询体检报告
     *
     * @param month
     * @param enterpriseID
     * @return
     */
    MedicalReportMonth selectOneByEnterpriseID(@Param("month") String month, @Param("enterpriseID") Integer enterpriseID);
}